<?php
	/**
	* @package ParkFind
	* @desc This is the proposal receipt page. This is tells user whether proposal was successfully submitted or not.
	*/
	/**
	* @desc This include file will load the directory settings for the Smarty Templates
	*/
	
	
  
   session_start();
  
  
	//Smarty	
	require 'includes/smarty.inc';
	$smarty->assign('title', "Proposal - Thank You!");
	$smarty->assign('user_id', $_SESSION["user_id"]);	
	$smarty->assign('last', $_SESSION["lastviewed"]);	
	$smarty->assign('firstname', $_SESSION["firstname"]);
	$smarty->assign('role', $_SESSION["role"]);
	$smarty->assign('top5', $_SESSION["top5"]);	
	$smarty->display('header.tpl');
	
	$result = $_GET["result"];

	if ($result == "success")		
		$smarty->assign('message', "Proposal submitted successfully to appropriate bodies. Thank you for your time");		
	else
		$smarty->assign('message', "Failed to submit proposal");
	
	$smarty->display('proposalreceipt.tpl');
	$smarty->display('footer.tpl');

?>
